package com.hunanwenli.movie.mapper;

import com.hunanwenli.entity.CommentaryLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface CommentaryLikeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CommentaryLike record);

    int insertSelective(CommentaryLike record);

    CommentaryLike selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CommentaryLike record);

    int updateByPrimaryKey(CommentaryLike record);

    int selectIsLike(@Param("pid") Integer pid,@Param("uid") Integer uid);

    int deleteByUidAndPid(@Param("pid") Integer pid, @Param("uid") Integer uid);

    int selectAllByUid(Integer uid);
}